cmake_minimum_required(VERSION 3.10)

# 设置交叉编译器
# set(CMAKE_C_COMPILER   /opt/hisi-linux/x86-arm/arm-himix200-linux/bin/arm-himix200-linux-gcc)
# set(CMAKE_CXX_COMPILER /opt/hisi-linux/x86-arm/arm-himix200-linux/bin/arm-himix200-linux-g++)
set(CMAKE_C_COMPILER   /opt/hisi-linux/x86-arm/arm-himix100-linux/bin/arm-himix100-linux-gcc)
set(CMAKE_CXX_COMPILER /opt/hisi-linux/x86-arm/arm-himix100-linux/bin/arm-himix100-linux-g++)

project (hisi_project LANGUAGES C)

add_compile_options(-Wall -O2 -g)
set(CMAKE_BUILD_TYPE "Debug")

add_compile_definitions(
    # 摄像头的型号为 imx335
    SENSOR0_TYPE=SONY_IMX335_MIPI_5M_30FPS_12BIT
)

# udp推视频流
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/app/udp_video)

# 录像机
# add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/app/camera)
